Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-structure-parser

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-structure-parser

[![Build Status](https://travis-ci.org/mulesoft-labs/ts-structure-parser.svg?branch=master)](https://travis-ci.org/mulesoft-labs/ts-structure-parser)

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
decreased by-22.01%
Maintainers
2
Weekly downloads
 
Created
Source

TypeScript Structural Parser

Build Status

This repository provides a parser for *.ts files. It parses the structure of a file and provides JSON object that contains its declaration.

Installation

npm install ts-structure-parser --save

Usage

import tsstruct=require("ts-structure-parser")

var filePath=path.resolve(path.resolve(__dirname,"src/"),"typescript-file.ts");
var decls=fs.readFileSync(filePath).toString();
var jsonStructure=tsstruct.parseStruct(decls,{},filePath);

Keywords

FAQs

Package last updated on 18 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc